import pandas as pd

if __name__ == '__main__':
    # 1、读取数据
    cars_df = pd.read_csv("cars.csv", sep=",", header=None,
                      names=["tollgate_id", "license_plate", "timestamp", "longitude", "latitude", "speed", "city",
                             "road", "district"])

    cars_df.groupby("city").count().show()


